Pod::Spec.new do |s|
  s.name         = "SMInterface"
  s.version      = "0.0.1"
  s.summary      = "This SMInterface is for test ."
  s.homepage     = "https://gitee.com/samcoding/SMInterface"
  s.license      = "MIT"
  s.license      = { :type => "MIT", :file => "LICENSE" }
  s.author       = { "山刘" => "liushan@segimail.com" }
  s.platform     = :ios, "8.0"
  s.source       = { :git => "https://gitee.com/samcoding/SMInterface.git", :tag => "#{s.version}" }
  # s.source       = { :path => "/Users/shanliu/Desktop/GitTest/SMInterface/SMInterface.podspec", :tag => "#{s.version}" }
  s.source_files  = "SMInterface/SMLogin/*.{h,m}"
  #s.resource_bundles = {
   # 'SMResource' => ['SMInterface/Assets/test_1.bundle']
  #}
  s.resources = ["SMInterface/Assets/test_1.bundle"]

  s.subspec 'UMMobClick'do|mob|
    mob.source_files = "SMInterface/UMMobClick/**/*"
    mob.vendored_frameworks = 'SMInterface/UMMobClick/UMMobClick.framework'
    mob.frameworks = 'CoreTelephony'
    mob.libraries = "sqlite3","z"
  end

  s.subspec 'Login'do|lg|
    lg.source_files  = "SMInterface/SMLogin/*.{h,m}"
    lg.dependency "SMInterface/UMMobClick"
    lg.dependency "SMInterface/SMHTTP"
  end

  s.subspec 'SMHTTP'do|http|
    http.source_files  = "SMInterface/SMHTTP/**/*"
  end  

end
